<?php
class Backoffice_Model_FormNewFolder extends Zend_Form
{
    /** @var Doctrine\ORM\EntityManager */
    protected $_em;
    
    public function __construct(Doctrine\ORM\EntityManager $em, $options = null)
    {
        parent::__construct($options);
        $this->_em = $em;
        
        $name = new Zend_Form_Element_Text('name');
        $name->setAttrib('size', 28)
             ->setLabel("Folder Name")
             ->setRequired(true)
             ->addErrorMessage("A folder name is required");
        $this->addElement($name);
             
        $folder = new Zend_Form_Element_Hidden('folder');
        $folder->removeDecorator("label")
               ->removeDecorator("htmlTag")
               ->removeDecorator("Errors");
        $this->addElement($folder);
    }
}
?>